package cn.genmer.test.security.common;

public enum CollectJobStatus {
        EXCEPTION(-1, "异常"),
        NOTSTARTED(0, "未开始"),
        UNDERWAY(1, "进行中"),
        FINISHED(2, "已完成");

        public int id;
        public String value;

        CollectJobStatus(int id, String value) {
            this.id = id;
            this.value = value;
        }

        public static String getCollectJobStatusValue(int id) {
            for (CollectJobStatus s : values()) {
                if (s.id == id) {
                    return s.value;
                }
            }
            return null;
        }
    }